void xfputs(const char *errtxt, const char *s, FILE *stream);
int case_ignore_strcmp(const char *s1, const char *s2);
+int case_ignore_strncmp(const char *s1, const char *s2, int n);
char *strsub(const char *s, const char *search, const char *replace);
char *gstrsub(const char *s, const char *search, const char *replace);
mkshort_handle *hdr = h;
int i;
- if (hdr) {
- for (i = 0; i < PRIME; i++) {
- queue *e, *t;
- QUEUE_FOR_EACH(&hdr->namelist[i], e, t) {
- uniq_shortname *s = (uniq_shortname *) e;
- dequeue(e);
- xfree(s->orig_shortname);
- xfree(s);
+ if (!hdr)
+ return;
+
+ for (i = 0; i < PRIME; i++) {
+ queue *e, *t;
+ QUEUE_FOR_EACH(&hdr->namelist[i], e, t) {
+ uniq_shortname *s = (uniq_shortname *) e;
+ if (global_opts.verbose_status >= 2 && s->conflictctr) {
+ fprintf(stderr, "%d Output name conflicts: '%s'\n",
+ s->conflictctr, s->orig_shortname);
}
+ dequeue(e);
+ xfree(s->orig_shortname);
+ xfree(s);
}
- xfree(hdr);
}
+ xfree(hdr);
}
/*
nstring = xxstrdup(ostring, file, line);
l = strlen (nstring);
while (l > 0) {
- if (strncmp(&nstring[l], " by ",4) == 0) {
+ if (case_ignore_strncmp(&nstring[l], " by ",4) == 0) {
nstring[l] = 0;
break;
}